const { opt: { type}, account, accountName, classId } = $event;
const threeWidget = this.pageObj.getApiWidgetByAliasName('三维组件');

console.log($event, account);
switch (type) {
    case 'config':
        const user = { userId: account, username: accountName };
        console.log('历史记录');
        threeWidget?.widgetObj?.artemis?.showLiveRoomHistory(user, (historyList) => {
            const first = historyList[0];
            if (first) {
                const { mainName, contentPath } = first;
                threeWidget?.widgetObj?.artemis?.showHistoryDetail(contentPath, mainName || accountName);
            }
        });

        break
    case 'detail':
        console.log('加入直播');
        threeWidget?.widgetObj?.artemis?.joinLiveRoom(classId);
        break
}
